package com.ysx.teacher.day20210908.extendss.ch00;

public class CarTest {


    public static void main(String[] args) {

        Car car1= new Car("red",4100000.5f);
        Car car2= new Car("red",4100000.5f);


        double salary=234.56;
        int money = (int) salary;

        // 我们判断2个对象是否相等 只能使用符号
        System.out.println(car1 == car2);

        // 坑 false ture
        System.out.println(car1.equals(car2));


    }

}
